<template>
<!-- 修改租户的信息 -->
  <div>
    <el-radio-group v-model="labelPosition" size="small">
      <el-radio-button label="left">左对齐</el-radio-button>
      <el-radio-button label="right">右对齐</el-radio-button>
      <el-radio-button label="top">顶部对齐</el-radio-button>
    </el-radio-group>
    <div style="margin: 20px;"></div>
    <el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
      <el-form-item label="密码">
        <el-input v-model="formLabelAlign.password1"></el-input>
      </el-form-item>
      <el-form-item label="重新输入密码">
        <el-input v-model="formLabelAlign.password2"></el-input>
      </el-form-item>
      <el-form-item label="昵称">
        <el-input v-model="formLabelAlign.nickname"></el-input>
      </el-form-item>
      <el-form-item label="性别">
        <el-input v-model="formLabelAlign.sex"></el-input>
      </el-form-item>

      <div class="btn-box">
        <el-button type="success" @click="modify()">确定</el-button>
        <el-button type="danger">取消</el-button>
      </div>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "ModifyLesseeInfo",
  data() {
    return {
      //表单样式
      labelPosition: 'left',
      formLabelAlign: {
        password1: '',
        password2: '',
        sex: '',
        nickname: '',
      }
    }
  },
  methods: {
    modify(){

    }
  },
  mounted() {
    this.formLabelAlign = {...this.formLabelAlign, ...this.$route.query.lessee};
    delete this.formLabelAlign["password"];
  }
};
</script>

<style scoped>
  .btn-box{
    display: flex;
    justify-content: space-between;
  }
</style>